/*
 * @Author: Jackie
 * @Date: 2021-01-01 16:13:00
 * @LastEditors: Jackie
 * @LastEditTime: 2021-01-07 21:33:58
 * @Description: file content
 * @FilePath: \temp-project\src\plugins\tools.js
 */

export const excellentIconText=
`<svg version="1.1"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="28.5px" height="28.5px" viewBox="0 0 28.5 28.5" style="enable-background:new 0 0 28.5 28.5;" xml:space="preserve">
<style type="text/css">
.st0{fill:#93EE05;}
.st1{fill:#664D26;}
</style>
<circle class="st0" cx="14.2" cy="14.3" r="14.3"/>
<g id="XMLID_39_">
<path id="XMLID_42_" class="st1" d="M12.5,12.2c-0.9-2.5-2.3-3.7-3.6-3.7c-1.4,0-2.7,1.3-3.6,3.7c-0.1,0.2,0.4,0.7,0.6,0.4
  c0.9-0.9,1.9-1.3,3-1.3c1.1,0,2.1,0.4,3,1.3C12.1,12.9,12.6,12.4,12.5,12.2"/>
<path id="XMLID_41_" class="st1" d="M23.1,12.2c-0.9-2.5-2.3-3.7-3.6-3.7c-1.4,0-2.7,1.3-3.6,3.7c-0.1,0.2,0.4,0.7,0.6,0.4
  c0.9-0.9,1.9-1.3,3-1.3c1.1,0,2.1,0.4,3,1.3C22.7,12.9,23.2,12.4,23.1,12.2"/>
<path id="XMLID_40_" class="st1" d="M22,16.1c-2.1,3-4.6,3.7-7.8,3.7s-5.7-0.7-7.8-3.7c-0.3-0.4-1.1-0.1-0.9,0.4
  c1.1,3.9,4.8,6.2,8.7,6.2c3.9,0,7.6-2.3,8.7-6.2C23,16,22.3,15.7,22,16.1"/>
</g>
</svg>
<span style="font-size: 15px;font-family:"NotoSansHans-Light";font-weight: 300;">优+</span>`

export const goodIconText=
`<svg version="1.1"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="28.5px" height="28.5px" viewBox="0 0 28.5 28.5" style="enable-background:new 0 0 28.5 28.5;" xml:space="preserve">
<style type="text/css">
.st3{fill:#F3E605;}
.st1{fill:#664D26;}
.st2{fill:#8D7328;}
</style>
<circle class="st3" cx="14.3" cy="14.2" r="14.3"/>
<g>
<g id="XMLID_2126_">
  <path id="XMLID_2128_" class="st1" d="M8.9,11.9c1.3,0,2.4,1.1,2.4,2.4c0,1.3-1.1,2.4-2.4,2.4c-1.3,0-2.4-1.1-2.4-2.4
    C6.5,13,7.6,11.9,8.9,11.9z"/>
  <path id="XMLID_2127_" class="st1" d="M19.8,11.9c1.3,0,2.4,1.1,2.4,2.4c0,1.3-1.1,2.4-2.4,2.4c-1.3,0-2.4-1.1-2.4-2.4
    C17.4,13,18.5,11.9,19.8,11.9z"/>
</g>
<g id="XMLID_2123_">
  <path id="XMLID_2125_" class="st2" d="M23.5,9.1c-1.5-1.3-3.6-1.8-5.5-1.5c-0.3,0-0.5-0.9-0.2-1c2.3-0.4,4.6,0.2,6.4,1.7
    C24.4,8.5,23.6,9.3,23.5,9.1"/>
  <path id="XMLID_2124_" class="st2" d="M10.8,7.5c-2-0.3-4,0.2-5.5,1.5C5.1,9.2,4.3,8.4,4.6,8.2C6.4,6.7,8.7,6.1,11,6.5
    C11.3,6.6,11.1,7.6,10.8,7.5"/>
</g>
<path id="XMLID_2122_" class="st1" d="M18.4,21.3c-2.6-1.2-5.6-1.2-8.1,0c-0.6,0.3,0.1,2,0.8,1.7c1.7-0.8,4.2-1.1,6.6,0
  C18.3,23.2,19.1,21.6,18.4,21.3"/>
</g>
</svg>
<span style="font-size: 15px;font-family: "NotoSansHans-Light";font-weight: 300;">良 </span>`
 

export const avgIconText=`
<svg version="1.1"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="28.5px" height="28.5px" viewBox="0 0 28.5 28.5" style="enable-background:new 0 0 28.5 28.5;" xml:space="preserve">
<style type="text/css">
.st5{fill:#E45506;}
.st1{fill:#664D26;}
.st2{fill:#FFFFFF;}
</style>
<circle class="st5" cx="14.3" cy="14.2" r="14.3"/>
<g>
<path id="XMLID_27_" class="st1" d="M20,19.5c-0.6-1.6-2.2-2.7-5.8-2.7c-3.6,0-5.1,1.1-5.8,2.7c-0.3,0.9,0.1,2.3,0.1,2.3
  c0.6,1.8,0.5,2.3,5.6,2.3c5.1,0,5-0.5,5.6-2.3C19.9,21.8,20.3,20.4,20,19.5"/>
<path id="XMLID_26_" class="st2" d="M18.3,19c0-0.1,0-0.3-0.1-0.4c0,0-0.9-1-4-1s-4,1-4,1c-0.1,0-0.1,0.2-0.1,0.4l0.1,0.3
  c0,0.1,0.1,0.2,0.2,0.2H18c0.1,0,0.2-0.1,0.2-0.2L18.3,19"/>
<g id="XMLID_23_">
  <path id="XMLID_25_" class="st1" d="M18.2,6.9c1.4,1.4,3.3,2,5.2,1.9c0.3,0,0.4,1,0.1,1C21.2,10,19,9.2,17.5,7.6
    C17.2,7.4,18,6.7,18.2,6.9"/>
  <path id="XMLID_24_" class="st1" d="M5.1,8.8C7,9,9,8.3,10.3,6.9c0.2-0.2,1,0.5,0.7,0.7C9.5,9.2,7.3,10,5.1,9.8
    C4.7,9.8,4.9,8.8,5.1,8.8"/>
</g>
<g id="XMLID_20_">
  <path id="XMLID_22_" class="st1" d="M16,12.4c1.9,3.6,5.8,3.6,7.7,0c0.1-0.2-0.1-0.3-0.5-0.5c-1.9,1.5-5,1.4-6.8,0
    C16.2,12.1,15.9,12.2,16,12.4"/>
  <path id="XMLID_21_" class="st1" d="M4.8,12.4c1.9,3.6,5.8,3.6,7.7,0c0.1-0.2-0.1-0.3-0.5-0.5c-1.9,1.5-5,1.4-6.8,0
    C4.9,12.1,4.7,12.2,4.8,12.4"/>
</g>
</g>
</svg>
<span style="font-size: 15px;font-family: "NotoSansHans-Light";font-weight: 300;">中 </span>`




export function formatDate(date) {
    let year = date.getFullYear(); // 年
    let month = date.getMonth() + 1; // 月
    let day = date.getDate(); // 日
    let week = date.getDay(); // 星期
    let weekArr = [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ];
    let hour = date.getHours(); // 时
    hour = hour < 10 ? "0" + hour : hour; // 如果只有一位，则前面补零
    let minute = date.getMinutes(); // 分
    minute = minute < 10 ? "0" + minute : minute; // 如果只有一位，则前面补零
    let second = date.getSeconds(); // 秒
    second = second < 10 ? "0" + second : second; // 如果只有一位，则前面补零
    return  `${year}-${month}-${day} ${hour}:${minute}:${second}  ${weekArr[week]}`;
  }



  export const columnList=['板块', '数量','','预算']
  export const inforList= [
                  {'板块': '集团内部', '数量': 57,   '':100000, '预算': 29337},
                  {'板块': '电力板块', '数量': 329,  '':100000,'预算': 191925},
                  {'板块': '煤炭板块', '数量': 39, '':100000,'预算': 24634},
                  {'板块': '天然气板块', '数量': 68, '':100000,'预算': 14912},
                  {'板块': '新能源板块', '数量': 37, '':100000,'预算': 12092},
                  {'板块': '科服板块', '数量': 74, '':100000,'预算': 35651},
                  {'板块': '西北分公司', '数量': 27, '':100000,'预算': 15067},
                  {'板块': '金融板块', '数量': 31, '':100000,'预算': 549},
                  {'板块': '石油公司', '数量': 46, '':100000,'预算': 16478},
                  {'板块': '浙能研究院', '数量': 28, '':100000,'预算': 9769},
                  {'板块': '长广集团', '数量': 6, '':100000,'预算': 207},
                  {'板块': '财务公司', '数量': 12, '':100000,'预算': 1707},
                  {'板块': '智能产业园', '数量': 3, '':100000,'预算': 45},
                ]
